import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;

public class Main {
    public static void main(String[] args) {
        Integer[] arr = {10,20,55,623,88,2,3,8};
        System.out.println(Arrays.toString(arr));

        //排序
        Arrays.sort(arr, Collections.reverseOrder());
        System.out.println(Arrays.toString(arr));


        //二分查找
        int index = Arrays.binarySearch(arr,55);
        System.out.println(index);
    }
}
